package com.wems.farm_manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wems.common.annotation.Excel;
import com.wems.common.core.domain.BaseEntity;

/**
 * 设备管理对象 tb_equipment
 * 
 * @author MPC
 * @date 2025-04-05
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long equipmentId;

    /** 所属风场ID */
    @Excel(name = "所属风场ID")
    private Long farmId;

    /** 设备类型ID */
    @Excel(name = "设备类型ID")
    private Long equipmentType;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installDate;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    //筛选字段
    private Long deptId;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setEquipmentId(Long equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setFarmId(Long farmId) 
    {
        this.farmId = farmId;
    }

    public Long getFarmId() 
    {
        return farmId;
    }

    public void setEquipmentType(Long equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public Long getEquipmentType() 
    {
        return equipmentType;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setInstallDate(Date installDate) 
    {
        this.installDate = installDate;
    }

    public Date getInstallDate() 
    {
        return installDate;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("farmId", getFarmId())
            .append("equipmentType", getEquipmentType())
            .append("model", getModel())
            .append("installDate", getInstallDate())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
